package han.cirno.corrupt.components.school.term_time

import java.util.Calendar

class BasicTermTime: TermTime {
    override fun getTerms(calendar: Calendar): Pair<String, String> {
        val month=calendar[Calendar.MONTH]
        val year=calendar[Calendar.YEAR]
        val xnd=if (month in Calendar.JANUARY..Calendar.AUGUST)
            "${year-1}-$year" else "$year-${year+1}"
        val xqd=if (month in Calendar.FEBRUARY..Calendar.AUGUST)"2" else "1"
        return xnd to xqd
    }
}